package test2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86131
 * Date: 2023-11-24
 * Time: 20:34
 */
import java.util.Scanner;
public class test2 {
    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        System.out.println("请输入一个字符串");
        String str = sc.next();

        int bigCount =0;
        int smallCount =0;
        int numberCount =0;

        //遍历
        for (int i = 0; i < str.length(); i++) {
            char c = str.charAt(i);
            if (c>='a'&&c<='z'){
                smallCount++;
            } else if (c>='A'&&c<='Z') {
                bigCount++;
            } else if(c>='0'&&c<='9'){
                numberCount++;
            }

        }

    }
}
